package com.the_last.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @TableName order_table
 */
@TableName(value = "order_table")
@Data
public class OrderTable {
    /**
     * 订单ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    /**
     * 商品ID
     */
    private Integer productId;
    
    /**
     * 数量
     */
    private Integer quantity;
    
    /**
     * 用户ID
     */
    private Long orderId;
    
    /**
     * 购买时候的价格
     */
    private BigDecimal purchasePrice;
    
    /**
     * 金额
     */
    private Integer amount;
    
    private Integer deleted;
}